
export default {
    namespaced: true,
    state:{
        routes:JSON.parse(sessionStorage.currRoute||"[]")
    },
    getters:{
        getRoutes(state){
            return state.routes
        },
    },
    mutations:{
        setRoutes(state,route){
            sessionStorage.currRoute=JSON.stringify(route)
            state.routes=route
        },
    },
    actions:{}
}